<?php
include "includes/db.php";
$user = $_GET['text1'];
$fen = $_GET['text2'];
if (user == "admin") {
    header("location:admin.php&user='$user'&fen='$fen'");
}
$sql = "select * from count where user='$user' and used=1";
$result = $conn->query($sql);
if ($result->num_rows > 0) {
    // 输出数据
    while($row = $result->fetch_assoc()) {
        echo "你的分数：" . $row['count'] . "<br>";
    }
} else {
    echo "0 结果";
}
$conn->close();
